package com.imooc.springboot.dubbo.nilinili.provider.mapper;

import com.imooc.springboot.dubbo.nilinili.provider.entity.po.CollectionPO;
import com.imooc.springboot.dubbo.nilinili.provider.entity.po.MyCollectionPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CollectionMapper {
    Integer addCollection(CollectionPO collectionPO);

    Integer isCollected(CollectionPO collectionPO);

    Integer cancelCollected(CollectionPO collectionPO);

    List<MyCollectionPO> getCollectionList(Integer userId);

    Integer countCollection(Integer valueOf);
}
